package com.jboa.dao.impl;

import java.util.List;

import javax.annotation.Resource;

import org.hibernate.SessionFactory;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
import org.springframework.stereotype.Repository;

import com.jboa.dao.IDeptDAO;
import com.jboa.vo.SysDepartment;
@Repository("deptDao")
public class DeptDAOImpl extends HibernateDaoSupport implements IDeptDAO {

	/**
	 * 查询所有信息
	 */
	public List<SysDepartment> getAll() {
		return super.getHibernateTemplate().find("from SysDepartment");
	}

}
